﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Entity.Car_Rental;
using Data.Car_Rental;
using VCommons;
using Web.Commons.Helpers;
using System.Xml.Serialization;
using System.IO;
using Car_Rental.Controllers.Helpers;

namespace Car_Rental.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        ICategoryRepository iCategoryRepository;
        IHelperCenterRepository helperCenterRepository;
        public HomeController()
        {
            iCategoryRepository = new CategoryRepository();
            helperCenterRepository = new HelperCenterRepository();
        }
        public ActionResult Index()
        {

            //  Standard.ClientHelper.AddRentalCar(new Standard.RentalCar { ProductID = 1, ReturnCity = "北京", ReturnShop = "一店" });

            return View(helperCenterRepository.GetDetailModel().FirstOrDefault(i => i.HelperCenterCategory_Extend.Name == "网站首页"));
        }

        public ActionResult About()
        {
            return View();
        }
    }



}
